package com.hospital.hospitalpatientservice.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 会员表
 * </p>
 *
 * @author handingfei
 * @since 2020-10-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("vipperson")
public class Vipperson implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 卡号
     */
    @TableField("cardid")
    private String cardid;

    /**
     * 患者用户
     */
    @TableField("sickperson_id")
    private Integer sickpersonId;

    /**
     * 累计消费
     */
    @TableField("consumption")
    private Double consumption;

    /**
     * 储值余额
     */
    @TableField("balance")
    private Double balance;

    /**
     * 累计储值
     */
    @TableField("summoney")
    private Double summoney;

    /**
     * 积分
     */
    @TableField("sumscore")
    private Integer sumscore;

    /**
     * 开卡时间
     */
    @TableField("createtime")
    private LocalDateTime createtime;

    /**
     * 到期时间
     */
    @TableField("endtime")
    private LocalDateTime endtime;

    /**
     * 会员状态
     */
    @TableField("status")
    private Integer status;


    @TableField("vipgrade_id")
    private Integer vipgradeId;

}
